.PHONY: clean all info

TARGETS := test
SOURCES := test.cpp
OBJS    := $(SOURCES:.cpp=.o)

CXXFLAGS := -g -Wall -std=c++11 -O3 
#CXXFLAGS := -Wall -Weffc++ -std=c++11 -O3 -stdlib=libc++
LDFLAGS  := 



all: $(TARGETS)

clean:
	/bin/rm -f $(OBJS) $(TARGETS)

info:
	@echo Compiler:        CXX         = $(CXX)
	@echo Compile command: COMPILE.cc  = $(COMPILE.cc)
	@echo Link command:    LINK.cc     = $(LINK.cc)



test.o: test.cpp matrix.hpp expr.hpp

test: test.o
	g++ -g test.o -o test
	#clang++ -stdlib=libc++ test.o -o test
	./test
